package com.mercury.pattern._05_adapter._001_classadapter;

/**
 * 转换器，将220v转换成5v
 * 当手机使用转换器时，能看到的都是5v的
 */
public class ChargerAdapter extends Voltage220V implements Voltage5V {
    @Override
    public int output5V() {
        int src = output220v();
        int desc = src/44;
        System.out.println("转换后：" + desc +" 伏");
        return desc;
    }
}
